package cn.lyjuan.android.demofive.frame.tpl;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;

/**
 * Created by chad on 12/11/2017.
 */

public abstract class FragmentImpl extends Fragment
{
    /**
     * fragment视图ID
     * @return
     */
    protected abstract int layoutId();

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        // 保存数据
        setRetainInstance(true);
    }
}
